/**
 * 
 */
package qjs.com.vn.action;

import java.util.ArrayList;
import java.util.List;

import qjs.com.vn.model.Ncc;
import qjs.com.vn.service.NccService;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/**
 * @author WIN7
 *
 */
public class NccAction extends ActionSupport implements ModelDriven<Object> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5761708542692399725L;
	Ncc ncc = new Ncc();
	NccService nccService;
	
	public  List<Ncc> getListNcc()
	{
	    List<Ncc> listNcc = new ArrayList<Ncc>();
	    listNcc = nccService.listNcc();
		return listNcc;
	}
	
	/**
	 * @param nccService the nccService to set
	 */
	public void setNccService(NccService nccService) {
		this.nccService = nccService;
	}

	@Override
	public Object getModel() {
		// TODO Auto-generated method stub
		return ncc;
	}

}
